<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title> 主页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html"/>
    <![endif]-->
    <link rel="shortcut icon" href="favicon.ico">
    <link th:href="@{static/css/bootstrap.min.css}"href="../static/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link th:href="@{static/css/font-awesome.css}"href="../static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link th:href="@{static/css/animate.css}"href="../static/css/animate.css" rel="stylesheet">
    <link th:href="@{static/css/style.css}"href="../static/css/style.css?v=4.1.0" rel="stylesheet">
</head>

<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:scroll">
<div id="wrapper">
    <!--左侧导航开始-->
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="nav-close"><i class="fa fa-times-circle"></i>
        </div>
        <div class="sidebar-collapse">
            <ul class="nav" id="side-menu">
                <li class="nav-header">
                    <div class="dropdown profile-element">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                                    <span class="block m-t-xs" style="font-size:20px;">
                                        <i class="glyphicon glyphicon-oil"></i>
                                        <strong class="font-bold">设备管理系统</strong>
                                    </span>
                                </span>
                        </a>
                    </div>
                    <div class="logo-element">设备
                    </div>
                </li>
                <li class="hidden-folded padder m-t m-b-sm text-muted text-xs">
                    <span class="ng-scope">系统功能</span>
                </li>
                <li>
                    <a class="J_menuItem" th:href="@{/index} " href="/index">
<!--                         th:href="@{index}" -->
                        <i class="fa fa-home"></i>
                        <span class="nav-label">主页</span>
                    </a>
                </li>
                <li shiro:hasPermission="1">
                    <a class="J_menuItem" th:href="@{user_list}" href="user_list.html">
                        <i class="glyphicon glyphicon-user"></i>
                        <span class="nav-label">用户管理</span>
                    </a>
                </li>
                <li shiro:hasPermission="1">
                    <a class="J_menuItem" th:href="@{anno}" href="anno.html">
                        <i class="glyphicon glyphicon-list-alt"></i>
                        <span  data-target="#updateApartmentModal"class="nav-label">编辑公告</span>
                    </a>
                </li>
                <li>
                    <a class="J_menuItem" th:href="@{category_list}" href="category_list.html">
                        <i class="glyphicon glyphicon-plus"></i>
                        <span class="nav-label">设备种类</span>
                    </a>
                </li>
                <li>
                    <a class="J_menuItem" th:href="@{equipment_list}" href="equipment_list.html">
                        <i class="glyphicon glyphicon-lamp"></i>
                        <span class="nav-label">设备列表</span>
                    </a>
                </li>
                <li>
                    <a class="J_menuItem" th:href="@{repair_list}" href="repair_list.html">
                        <i class="glyphicon glyphicon-bed"></i>
                        <span class="nav-label">设备保养</span>
                    </a>
                </li>
                <li>
                    <a class="J_menuItem" th:href="@{supplier_list}" href="supplier_list.html">
                        <i class="glyphicon glyphicon-user"></i>
                        <span class="nav-label">供应商列表</span>
                    </a>
                </li>
                <li>
                    <a class="J_menuItem" th:href="@{address_list}" href="address_list.html">
                        <i class="glyphicon glyphicon-tree-deciduous"></i>
                        <span class="nav-label">设备位置</span>
                    </a>
                </li>
                <li>
                    <a class="J_menuItem" th:href="@{/user/logout}" >
                        <i class="glyphicon glyphicon-off"></i>
                        <span class="nav-label">退出登录</span>
                    </a>
                </li>


            </ul>
        </div>
    </nav>
    <!--左侧导航结束-->
    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <div class="row border-bottom">
            <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                <div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-info " href="#"><i
                        class="fa fa-bars"></i> </a>
                </div>
            </nav>
        </div>
        <div class="row J_mainContent" id="content-main">
            <iframe id="J_iframe" width="100%" height="100%" th:src="@{index}" src="index.html" frameborder="0"
                    data-id="index_v1.html"
                    seamless></iframe>
        </div>
    </div>
    <div class="modal inmodal" id="updateApartmentModal" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content animated fadeIn">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span
                            class="sr-only">Close</span></button>
                    <h6 class="modal-title">修改密码</h6>
                </div>
                <div class="modal-body col-sm-12">
                    <form class="form-horizontal" method="post" onsubmit="return updateUser(this)">
                        <div class="form-group">
                            <div class="col-sm-10">
                                <input type="hidden" id="id" name="id" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">用户名</label>
                            <div class="col-sm-10">
                                <input type="text" placeholder="请输入修改后的用户名" class="form-control" id="username2" name="username2">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">密码</label>
                            <div class="col-sm-10">
                                <input type="text" placeholder="请输入修改后的密码" class="form-control" id="password2" name="password2">
                            </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                            <button type="submit" class="btn btn-primary" >保存</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!--右侧部分结束-->
</div>
<!-- 全局js -->
<script th:src="@{static/js/jquery.min.js}" src="../static/js/jquery.min.js?v=2.1.4"></script>
<script th:src="@{static/js/bootstrap.min.js}" src="../static/js/bootstrap.min.js?v=3.3.6"></script>
<script th:src="@{static/js/plugins/metisMenu/jquery.metisMenu.js}" src="../static/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script th:src="@{static/js/plugins/slimscroll/jquery.slimscroll.min.js}" src="../static/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script th:src="@{static/js/plugins/layer/layer.min.js}" src="../static/js/plugins/layer/layer.min.js"></script>
<!-- 自定义js -->
<script th:src="@{static/js/hAdmin.js}" src="../static/js/hAdmin.js?v=4.1.0"></script>
<script type="text/javascript" th:src="@{static/js/index.js}" src="../static/js/index.js"></script>
<!-- 第三方插件 -->
<script th:src="@{static/js/plugins/pace/pace.min.js}" src="../static/js/plugins/pace/pace.min.js"></script>
</body>
</html>
